<!doctype html>
<html>
<head>
    <title>列表页面</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
</head>
<body>
<div id="mainContent" class="wrap">
    <div class="h_a">搜索</div>
    <div class="search_type cc mb10">
        <form action="<?php $form_url;?>" method="get">
            <div class="ul_wrap">
                <label>关键字：</label>
                <input type="text" class="input length_3" name="word"  value="<?php if(!empty($condition['word'])) echo $condition['word'] ;?>" placeholder='公司名称/手机/微店名称'>
                <input type="checkbox" id="status" value="1" <?php if($condition['status']=='1') echo "checked" ;?> name="status"><label for="status">查看禁用微店</label>
                <button class="btn" type="submit">搜索</button>
            </div>
        </form>
    </div>
    <div class="nav">
        <ul>
            <li><a  <?php if($show_add_button):?>
                    class="icon-plus"
                    href="<?php echo site_url('weixin/wshop/add_shop')?>"
                    <?php else:?>
                    href="javascript:;"
                    <?php endif;?>>
                    <?php if(!$show_add_button):?><span style="color:red">本站点微店数量达到限制,请联系销售人员</span>
                    <?php else:?>
                        添加微店
                    <?php endif;?></a>
            </li>
        </ul>
    </div>
    <div class="h_a">微店列表</div>
    <div id="content" class="table_full">
        <form method="post" action="<?php echo URLPRE?>member/admin/delete_member/">

            <table data-uri="<?php echo site_url('weixin/wshop/shop_status/');?>">
                <tr>
                    <th style="width:2%;">ID</th>
                    <th style="width:4%;">店铺名称</th>
                    <th style="width:4%;">手机</th>
                    <th style="width:4%;">公司名称</th>
                    <th style="width:4%;">店铺状态</th>
                    <th style="width:4%;">统计</th>
                    <th style="width:2%;">操作</th>
                </tr>
                <?php foreach($shop_array as $k=>$v):?>
                    <tr>
                    <td style="width:2%;display:none">
                        <input type="checkbox" value="<?php echo $v['user_id'];?>" name="id[]">
                    </td>
                    <td><a href="<?php echo site_url('weixin/wshop/edit_shop/'.$v['user_id']);?>"><?php echo $v['user_id'];?></a></td>
                     <td style="width:4%;"><?php echo $v['shop_name'];?></td>
                     <td style="width:4%;"><?php echo $v['mobile'];?></td>
                    <td style="width:4%;"><?php echo $v['company'] ;?></td>
                        <td style="width:4%;">
                            <img class="pointer" data-id="<?php echo $v['user_id'];?>" style="cursor: pointer;" data-field="shop_status" data-value="<?php echo $v['shop_status'];?>" src="<?php echo URLPRE;?>static/admin/images/icons/icon_<?php echo $v['shop_status'];?>.png" /></td>
                        <td>
                            <a target="_top" href="<?php echo site_url('weixin/windex/tj_weidian/?uid='.$v['user_id'])?>">查看</a>
                        </td>
                    <td style="width:4%" class="btn_min">
                        <a class="icon-pencil" href="<?php echo site_url('weixin/wshop/edit_shop/'.$v['user_id']);?>">编辑</a>
                        <a class="icon-remove-2 doDel" href="javascript:;" data-uri="<?php echo site_url('weixin/wshop/delete_shop?id='.$v['user_id']);?>">删除</a>
                    </td>
                </tr>
                <?php endforeach ;?>
            </table>
        </form>
        <div class="page_nav">
            <?php echo $this->mypageclass->show(2); ?>
        </div>
    </div>
</div>

</body>
</html>